home *** CD-ROM | disk | FTP | other *** search
/ CD-ROM Advisor / CD-ROM Advisor.iso / prodemo / pdymain.dir / 00002_Script_2 < prev    next >
Text File  |  1995-09-29  |  2KB  |  53 lines

  1. on enterFrame
  2.   --initialize first time through the movie, but not upon returns when the movie is restarted
  3.   --ie a global initialized here will not be reinitialized on returns from called movies
  4.   --this prevents state from being destroyed...and should make restart run faster
  5.   
  6.   global gNumberOfMainButtons
  7.   global gCentersOfMainButtons, gMagicOffsetsOfMainButtons, gCastMemsOfMainButtons, gAniHasBeenViewed
  8.   global gRadiusOfMainButton
  9.   global gMagicH1, gMagicH2, gMagicV1, gMagicV2 --define regions for hit detection
  10.   global gAnisForMainButtons  --names of Director movies (animations)
  11.   
  12.   global gNumberOfSmallButtons
  13.   global gCentersOfSmallButtons, gMagicOffsetsOfSmallButtons, gCastMemsOfSmallButtons, gLabelsForSmallButtonActions
  14.   global gRadiusOfSmallButtons
  15.   
  16.   global gIndexOfCurrentButton
  17.   global gMouseDownInButton  --TRUE means down was in a button...in case of rollout
  18.   global gSmallButtonsOn  --TRUE means that the small buttons are visible and active
  19.   global gIsMainButton, gIsSmallButton  --makes gIndexOfCurr... relative to main or small button
  20.   
  21.   global gChannelForHighLights, gChannelForFreeFlash
  22.   global gNextLabel  --a score label
  23.   global gMovieToPlay --Boolean, true if there is a movie (animation) to play
  24.   
  25.   put 5 into gNumberOfMainButtons
  26.   put [[128, 254], [128, 109], [324, 109], [520, 109], [520, 254]] into gCentersOfMainButtons
  27.   put [[-2,1],[-2,0],[-4,0],[-1,-2],[-4,1]] into gMagicOffsetsOfMainButtons 
  28.   put [25, 26, 27, 28, 29] into gCastMemsOfMainButtons
  29.   put [FALSE, FALSE, FALSE, FALSE, FALSE] into gAniHasBeenViewed
  30.   put 56 into gRadiusOfMainButton
  31.   
  32.   put 2 into gNumberOfSmallButtons
  33.   put [[125, 440], [517, 440]] into gCentersOfSmallButtons
  34.   put [[1, -4], [-1, -4]] into gMagicOffsetsOfSmallButtons
  35.   put [31, 32] into gCastMemsOfSmallButtons
  36.   put ["free", "exit"] into gLabelsForSmallButtonActions
  37.   put 32 into gRadiusOfSmallButtons
  38.   
  39.   put 226 into gMagicH1 --right of Dylan and Edna
  40.   put 420 into gMagicH2 --right of Loni
  41.   put 188 into gMagicV1 --below Edna, Loni and Rol
  42.   put 359 into gMagicV2 --below Dylan and WildB
  43.   
  44.   put ["Dylan.dxr", "Edna.dxr","Loni.dxr","Roland.dxr","Bill.dxr"] into gAnisForMainButtons
  45.   
  46. end enterFrame
  47.  
  48. on exitFrame
  49.   
  50.   play movie "open.dxr"
  51.   
  52. end exitFrame
  53.